//
//  CourseCenterOrderView.h
//  xpkc
//
//  Created by TopSageOSX on 15/2/4.
//  Copyright (c) 2015年 TopSage. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CourseCenterCartCell.h"
#import "UIView+Frame.h"

@protocol CourseCenterOrderDelegate <NSObject>
/**
 *  提交订单
 */
- (void)submitOrderwith:(NSString *)price andcredits:(NSString *)credits andoid:(NSString *)oid;


-(void)studyCardClick:(NSInteger)number;


@end

@interface CourseCenterOrderView : UIView<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, assign)id<CourseCenterOrderDelegate> delegate;

@property (nonatomic,strong) UIButton * recipientBtn;

@property (nonatomic,strong) UIButton * studyButton;

@property (nonatomic,strong) UIButton * studyButton2;

/**
 *  设置收件人信息
 *
 *  @param info info
 */
- (void)setRecipitentInfoWithDic:(NSDictionary *)info;

/**
 *  设置商品详情
 *
 *  @param item item
 */


- (void)setItemInfoWithArray:(NSArray *)items price:(double)currentPrice studycard:(NSString *)studycard;

- (void)setItemInfoWithArray:(NSArray *)items price:(double)currentPrice studycard:(NSString *)studycard array:(NSArray *)dictArray;

@end
